$Status
= GetCallProgress ()
Obtains
the current status of a Dial() or Transfer() operation.
Return
Value
Returns the status of the line.
Remarks
Example
$phoneno = "1234567890"
MAIN:
display $deviceid " Dialing " $phoneno
$stat = dial($phoneno)
while true
$stat = GetCallProgress()
if $stat <> ""
display $stat
endif
if $stat == "CONNECTED"
display $deviceid "Call connected.."
Play "welcome.wav"
break
else if find($stat,"DISCONNECTED") >= 0)
break
endif
sleep 250
endwhile
hangup
goto MAIN
* User has hung up
ONHANGUP:
hangup
goto MAIN
* An error has occurred
ONSYSTEMERROR:
log $error
display $error
if $debug
msgbox $error
endif
hangup
goto MAIN
Possible values for $Status are :